package com.cws.backup.common;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * @author cws
 */
@Slf4j
@Component
public class CommandUtil {
    //判断系统是否是Linux
    public static boolean isLinuxSystem() {
        String os = System.getProperty("os.name");
        log.info("操作系统:" + os);
        if (os.toLowerCase().contains("linux")) {
            return true;
        }
        return false;
    }
}